package com.ufgov.zc.client.component.table.codecelleditor;import java.awt.Component;import javax.swing.JTable;import javax.swing.table.TableCellEditor;import com.ufgov.zc.client.component.ContractSelectField;import com.ufgov.zc.client.component.table.GkAbstractCellEditor;public class ContractCellEditor extends GkAbstractCellEditor implements TableCellEditor {  private ContractSelectField contractSelectField = new ContractSelectField();  private ContractCellEditor self = this;  public ContractCellEditor() {  }  public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row,  int column) {    contractSelectField.setValueByCode((String) value);    return contractSelectField;  }  public Object getCellEditorValue() {    Object obj = contractSelectField.getContract();    if (obj != null) {      return contractSelectField.getContract().getContractCode();    } else {      return null;    }  }}